package com.dgz.system.domain.question;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dgz.common.core.domain.BaseEntity;
import lombok.*;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: DongGuoZhen
 * @Date: 2025/04/02/17:07
 * @Description:
 */

/**
 * create table tb_question(
 * question_id bigint unsigned not null comment '题目id',
 * title varchar(50) not null comment '题目标题',
 * difficulty tinyint not null comment '题目难度 1：简单，2:中等，3：困难',
 * time_limit int not null comment '时间限制',
 * space_limit int not null comment '空间限制',
 * content varchar(1000) not null comment '题目内容',
 * question_case varchar(1000) not null comment '题目用例',
 * default_code varchar(500) not null comment '默认代码块',
 * main_fuc varchar(500) not null comment 'main函数',
 * create_by bigint unsigned not null comment '创建人',
 * create_time datetime not null comment '创建时间',
 * update_by bigint unsigned not null comment '更新人',
 * update_time datetime not null comment '更新时间',
 * primary key(`question_id`)
 * )
 */
@TableName("tb_question")
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class Question extends BaseEntity {
    @TableId(type = IdType.ASSIGN_ID)
    private Long questionId;
    private String title;
    private Integer difficulty;
    private Long timeLimit;
    private Long spaceLimit;
    private String content;
    private String questionCase;
    private String defaultCode;
    private String mainFuc;
}
